package org.setamv.springcloud.hystrix.raw.command.collapse;

import com.netflix.hystrix.HystrixCollapserKey;
import com.netflix.hystrix.HystrixCommand;
import com.netflix.hystrix.HystrixCommandGroupKey;

public class CollapseCommandTest {

    public static void main(String[] args) {

    }

    public static class CollapseCommand extends HystrixCommand<String> {
        private String userId;
        public CollapseCommand(String userId) {
            super(HystrixCommandGroupKey.Factory.asKey("testGroup"));
            this.userId = userId;
        }

        @Override
        protected String run() throws Exception {
            return null;
        }

        @Override
        public HystrixCollapserKey getOriginatingCollapserKey() {
            return super.getOriginatingCollapserKey();
        }
    }
}
